﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using GameSchool.Models;

namespace GameSchool.DAL
{
    public interface IEventRepository : IDisposable
    {
        // Nánari upplýsingar um hvernig Repository patternið virkar er á:
        // http://www.asp.net/mvc/tutorials/getting-started-with-ef-using-mvc/implementing-the-repository-and-unit-of-work-patterns-in-an-asp-net-mvc-application

        List<Event> GetEvent();
        Event GetEventById(int eventId);
        void InsertEvent(Event event_);
        void DeleteEvent(int eventId);
        void UpdateEvent(Event event_);
        void Save();
    }
}
